package com.atguigu.srb.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="OrdinaryUser对象",description = "普通用户对象")
public class User {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID", required = true, example = "1")
    @TableId(value = "userid", type = IdType.AUTO)
    private int userid;

    @ApiModelProperty(value = "用户名", required = true, example = "user123")
    private String username;

    @ApiModelProperty(value = "用户密码", required = true, example = "password123")
    private String password;

    @ApiModelProperty(value = "用户权限")
    private String permissions;

    @ApiModelProperty(value = "删除标记（0:不可用 1:可用）")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;
}
